﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Dashboard.aspx.cs" Inherits="Dashboard" MasterPageFile="MasterPage.master"%>

<asp:Content ID="Content1" ContentPlaceHolderId ="head" runat="server">
<title>Dashboard</title>
<link rel="stylesheet" href="css/estilos.css" type="text/css" />
    <script type="text/javascript" language="JavaScript" src="js/JScript.js"></script> 

    <script language="JavaScript" type="text/javascript">
        function evaluarclave() {
            if (objeto("txtClAnterior").value == "" | objeto("txtClNueva").value == "" | objeto("txtClConfirmar").value == "") {
                //mostrarmsg("Cambiar clave", "Debe ingresar las claves!!", 1)
                alert("Debe ingresar las claves!!");
                return false;
            }
            if (objeto("txtClNueva").value != objeto("txtClConfirmar").value) {
                //mostrarmsg("Cambiar clave", "Error!!, las claves no coinciden", 1)
                alert("Error!!, las claves no coinciden");
                return false;
            }
        }

        function cambiaclave() {
            objeto("camclave").style.display = "block";
            objeto('txtClAnterior').focus();
            return false;
        }

 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderId ="body" runat="server">


    <div id="panel0">
        <table>
        <tr>
        <td style="width: 700px; height:740px; vertical-align: top;">
            <div>
                <img alt="" src="Imagenes/logo2.png" /></div>
            <div class="titulo11">
                <asp:Label ID="lblUsuario" runat="server" Text="Label"></asp:Label></div>
            <div class="titulo12">
                <asp:Label ID="lblFecha" runat="server" Text="Label"></asp:Label></div>
            <div>
                <asp:LinkButton ID="LinkButton1" runat="server" CssClass="btn btn-info boton1" 
                    PostBackUrl="~/legaldocs.aspx">Procesos Judiciales</asp:LinkButton>
                <asp:LinkButton ID="LinkButton2" runat="server" CssClass="btn btn-info boton1">Multas y sanciones OSINERGMIN</asp:LinkButton>
                <asp:LinkButton ID="LinkButton3" runat="server" CssClass="btn btn-info boton1">Resumen y Gerenciamiento</asp:LinkButton>
                <asp:LinkButton ID="LinkButton4" runat="server" CssClass="btn btn-info boton1" 
                    PostBackUrl="~/Administrar.aspx">Administración del sistema</asp:LinkButton>
                <asp:LinkButton ID="LinkButton5" runat="server" 
                    CssClass="btn btn-default boton1" PostBackUrl="~/Default.aspx">Cerrar sesión</asp:LinkButton>
                <asp:LinkButton ID="LinkButton6" runat="server" 
                    CssClass="btn btn-default boton1" onclientclick="return cambiaclave()">Cambiar contraseña</asp:LinkButton>
            </div>
        </td>

        <td style="width: 520px; height:740px;background-image: url('Imagenes/notas.png'); vertical-align: top;">
        <div class="titulo10">Ingresos de hoy<span class="badge pull-right">
            <asp:Label ID="lblIH" runat="server" Text="00"></asp:Label>
            </span></div>
        <div class="lista2" >
        
          <div id="areadatos" runat="server"></div>
  
        </div>

        <div style="height:25px;"></div>

        <div class="titulo10">Proximos vencimientos<span class="badge pull-right">
            <asp:Label ID="lblPV" runat="server" Text="00"></asp:Label>
        </span></div>
        <div class="lista2">
            <div id="areadatos2" runat="server"></div>
        </div>
        
        </td>
        </tr>
        </table>
    </div>


     <div id="camclave" class="modal">
       <div id="cjclave" class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title">Cambiar Clave
                <button type="button" class="close" onclick="return ocultarmsg('camclave')" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                </h3>
            </div>

            <div style="width:300px; text-align:center; margin-left:30px;" class="panel-body">

            <table id="tabclave" width="270px">
                <tr>
                    <td align="left" width="100px"><div class="labelcc">Clave anterior :</div></td>
                    <td><asp:TextBox ID="txtClAnterior" runat="server" placeholder="Clave anterior" 
                         CssClass="form-control" TextMode="Password" Width="160px" Height="30px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="left" width="100px"><div class="labelcc">Clave nueva :</div></td>
                    <td><asp:TextBox ID="txtClNueva" runat="server" placeholder="Clave nueva" 
                               CssClass="form-control" TextMode="Password" Width="160px" Height="30px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="left" width="100px"><div class="labelcc">Confirmar :</div></td>
                    <td><asp:TextBox ID="txtClConfirmar" runat="server" placeholder="Confirmar" 
                               CssClass="form-control" TextMode="Password" Width="160px" Height="30px"></asp:TextBox>
                    </td>
                </tr>
           
            </table>
            </div>

            <div style="text-align:center" class="panel-footer">
                <asp:Button ID="btnClAceptar" runat="server" CssClass="btn btn-default" Text="Aceptar" 
                    OnClientClick="return evaluarclave()" onclick="btnClAceptar_Click" />
                <asp:Button ID="btnClCancelar" runat="server" CssClass="btn btn-primary" Text="Cancelar" OnClientClick="return ocultarmsg('camclave')" />
            </div>
      </div>
    </div>

  </asp:Content>